<?php

class amazonRetriever{
	
	function __construct(){

		define('APIKEY','AKIAJ2Q6JEMJNVKRSRIA');
		define('PARTNERID','talulu-21');


		$this->ch = curl_init();
		// Die URL des AWS-Aufrufes zusammenstellen
		$url  = "http://webservices.amazon.de/onca/xml?Service=AWSECommerceService";
		$url .= "&AWSAccessKeyId=".APIKEY;
		$url .= "&AssociateTag=".PARTNERID;
		$url .= "&Operation=ItemSearch";
		$url .= "&Keywords=*";
		$url .= "&SearchIndex=Books";		
		
		echo $url;
		//
		// curl_setopt( $this->ch, CURLOPT_URL, $url );
		// curl_setopt( $this->ch, CURLOPT_HEADER, 0 );
		// curl_setopt( $this->ch, CURLOPT_RETURNTRANSFER, 1 );
		// $result = curl_exec( $this->ch );
		// curl_close( $this->ch );
		// return $result;
	}
	
}


?>